package com.robotic.test;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class TemperatureData {
    private float temperature;

    public TemperatureData(byte[] data) {
        ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);
        this.temperature = buffer.getFloat();
    }

    public float getTemperature() {
        return temperature;
    }
}